home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Compression / Opener / Source / Process.h < prev    next >
Text File  |  1993-07-15  |  792b  |  31 lines

  1. #import <appkit/appkit.h>
  2. #import <objc/Object.h>
  3. #import <stdio.h>
  4.  
  5. #define BUFSIZE 2048
  6.  
  7. @interface Process:Object {
  8.     FILE *fpTo, *fpFrom;
  9.     int from;
  10.     int childPid;
  11.     int masterPty;    // file descriptor for master/slave pty
  12.     int slavePty;
  13.     id delegate;
  14.     int bufferCount;
  15.     char buffer[BUFSIZE];
  16.     SEL action;
  17. }
  18.  
  19. + new:(char *)process delegate:del ;
  20. + new:(char *)process delegate:del andPty:(BOOL)wantsPty andStderr:(BOOL)wantsStderr;
  21. - init:(char *)process delegate:del; // init: andStdErr:YES
  22. - init:(char *)process delegate:del andPty:(BOOL)wantsPty andStderr:(BOOL)wantsStderr;
  23.     
  24. - puts:(char *)s;
  25. - gets:(char *)s :(int)n;
  26. - terminate:sender; // forces the process to terminate (w/ SIGTERM)
  27. - setDelegate:anObject;
  28. - delegate;
  29. - setAction:(SEL)theAction;
  30. @end
  31.